<template>
  <div class="swaper">
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="item in json.data.swiperList" :key="item.id">
        <img :src="item.imgUrl" alt="">
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
import json from '../../../../static/mock/index.json'
export default {
  data(){
    return {
      json
    }
  }
};
</script>

<style scoped lang="scss">
.swaper {
  width: 100%;
  height: 122px;
}
.van-swipe__track{
  height: auto;
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  text-align: center;
  img{
    width: 100%;
    height: 100%;
  }
}
</style>